﻿@{
    Layout = null;
    ViewData["Title"] = "IndexFilter";
}
<script src="~/js/vue.js"></script>
<script src="~/js/axios.js"></script>
<script src="~/element-ui/lib/index.js"></script>
<link rel="stylesheet" href="~/element-ui/lib/theme-chalk/base.css" />
<link rel="stylesheet" href="~/element-ui/lib/theme-chalk/index.css" />
<h1>简历筛选IndexFilter</h1>
<div id="app">
    <el-form ref="from" :model="formData" label-width="80px">
        @*第一行*@
        <el-row>
            @*查询条件为职位分类、关键字和登记时间。职位分类查询条件为两级联动*@
            <el-col :span="6"><div>请选择职位分类：</div></el-col>
            <el-col :span="6">
                <el-form-item label>
                    @*注意：这里联级子集主键名需为id*@
                    <el-cascader v-model="cmkValue"
                                 :options="cmks"
                                 :props="optionProps"
                                 v-on:change="handleChange" ref="cmkk"></el-cascader>
                </el-form-item>
            </el-col>
        </el-row>
        @*第二行*@
        <el-row>
            <el-col :span="6"><div>请输入关键字：<br />(姓名、电话、身份证号、个人履历)</div></el-col>
            @*将在姓名，电话，身份证号码，个人履历字段中寻找匹配*@
            <el-col :span="12">
                <el-form-item label>
                    <el-input type="textarea"
                              :autosize="{ minRows: 4, maxRows: 6}"
                              placeholder="请输入内容"
                              v-model="keyword">
                    </el-input>
                </el-form-item>
            </el-col>
        </el-row>
        @*第三行*@
        <el-row>
            <el-col :span="6"><div>请选择登记时间：<br />（YYYY-MM-DD）</div></el-col>
            @*将在姓名，电话，身份证号码，个人履历字段中寻找匹配*@
            <el-col :span="12">
                <el-form-item label>
                    <el-date-picker v-model="regist_time"
                                    type="daterange"
                                    range-separator="至"
                                    start-placeholder="开始日期"
                                    end-placeholder="结束日期">
                    </el-date-picker>
                </el-form-item>
            </el-col>
        </el-row>
        <el-row>
            <el-col :span="12" :offset="16"><el-button type="success" v-on:click="onSubmit">开始筛选</el-button></el-col>
        </el-row>
    </el-form>
    @*筛选后的表格数据*@
    <transition name="el-fade-in">
        <div v-show="show">
            <el-table :data="tableData"
                      stripe
                      style="width: 100%">
                <el-table-column prop="human_name"
                                 label="姓名">
                </el-table-column>
                <el-table-column prop="human_age"
                                 label="年龄">
                </el-table-column>
                <el-table-column prop="human_major_kind_name"
                                 label="应聘岗位">
                </el-table-column>
                <el-table-column prop="human_major_name"
                                 label="职位">
                </el-table-column>
                <el-table-column prop="human_mobilephone"
                                 label="手机号码">
                </el-table-column>
                <el-table-column prop="human_college"
                                 label="毕业院校">
                </el-table-column>
                <el-table-column prop="engage_type"
                                 label="招聘途径">
                </el-table-column>
                <el-table-column label="操作">
                    <template slot-scope="scope">
                        <el-button size="mini"
                                   v-on:click="handleEdit(scope.row)">编辑</el-button><br />
                        <el-button size="mini"
                                   type="danger"
                                   v-on:click="handleDelete(scope.row.res_id)">删除</el-button>
                    </template>
                </el-table-column>
            </el-table>
            @*修改的模态框*@
            <el-dialog title="简历筛选修改"
                       :visible.sync="dialogVisibleUdp"
                       width="100%">
                <el-form ref="form" :model="formData" label-width="80px">
                    @*第一行*@
                    <el-row>
                        <el-col :span="6">
                            <el-form-item label="职位分类">
                                @*注意：这里联级子集主键名需为id*@
                                <el-cascader v-model="cmkValue"
                                             :options="cmks"
                                             :props="optionProps"
                                             v-on:change="handleChange" ref="cmkk"></el-cascader>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="招聘类型">
                                <el-select v-model="engage_type" placeholder="请选择招聘类型">
                                    <el-option label="社区招聘" value="社区招聘"></el-option>
                                    <el-option label="校园招聘" value="校园招聘"></el-option>
                                </el-select>
                            </el-form-item>
                        </el-col>
                    </el-row>
                    @*第二行*@
                    <el-row>
                        <el-col :span="6">
                            <el-form-item label="姓名">
                                <el-input v-model="human_name" placeholder="请输入姓名"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="性别">
                                <el-radio v-model="human_sex" label="男">男</el-radio>
                                <el-radio v-model="human_sex" label="女">女</el-radio>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="Email">
                                <el-input v-model="human_email" placeholder="请输入Email"></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>
                    @*第三行*@
                    <el-row>
                        <el-col :span="6">
                            <el-form-item label="电话号码">
                                <el-input v-model="human_telephone" placeholder="请输入电话号码"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="家庭电话">
                                <el-input v-model="human_homephone" placeholder="请输入家庭电话"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="手机号">
                                <el-input v-model="human_mobilephone" placeholder="请输入手机号"></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>
                    @*第四行*@
                    <el-row>
                        <el-col :span="12">
                            <el-form-item label="住址">
                                <el-input v-model="human_address" placeholder="请输入住址"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="邮编">
                                <el-input v-model="human_postcode" placeholder="请输入邮编"></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>
                    @*第五行*@
                    <el-row>
                        <el-col :span="6">
                            <el-form-item label="国籍">
                                <el-select placeholder="请选择国籍" filterable style="width: 77.9%" v-model="human_nationality" v-on:change="natchange">
                                    <el-option-group v-for="group in human_nationalityList" :key="group.label" :label="group.label">
                                        <el-option v-for="item in group.options" :key="item.value" :label="item.label" :value="item.label">
                                        </el-option>
                                    </el-option-group>
                                </el-select>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="出生地">
                                <el-input v-model="human_birthplace" placeholder="请输入出生地"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="生日">
                                <el-date-picker v-model="human_birthday"
                                                type="date"
                                                placeholder="选择您的生日">
                                </el-date-picker>
                            </el-form-item>
                        </el-col>
                    </el-row>
                    @*第六行*@
                    <el-row>
                        <el-col :span="6">
                            <el-form-item label="民族">
                                <el-select placeholder="请选择民族" v-model="human_race" v-on:change="natchange">
                                    <el-option v-for="item in human_raceList" :key="item.id" :label="item.info" :value="item.info">
                                    </el-option>
                                </el-select>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="宗教信仰">
                                <el-select placeholder="请选择宗教信仰" v-model="human_religion" v-on:change="natchange">
                                    <el-option label="基督教" value="基督教"></el-option>
                                    <el-option label="伊斯兰教" value="伊斯兰教"></el-option>
                                    <el-option label="佛教" value="佛教"></el-option>
                                </el-select>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="政治面貌">
                                <el-select placeholder="请选择政治面貌" v-model="human_party" v-on:change="natchange">
                                    <el-option v-for="item in human_partyList" :label="item.value" :value="item.value" :key="item.id"></el-option>
                                </el-select>
                            </el-form-item>
                        </el-col>
                    </el-row>
                    @*第七行*@
                    <el-row>
                        <el-col :span="6">
                            <el-form-item label="身份证号">
                                <el-input v-model="human_idcard" placeholder="请输入身份证号码"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="年龄">
                                <el-input v-model="human_age" placeholder="请输入年龄"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="毕业院校">
                                <el-input v-model="human_college" placeholder="请输入毕业院校"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="学历">
                                <el-select placeholder="请选择学历" v-model="human_educated_degree" v-on:change="natchange">
                                    <el-option label="初中" value="初中"></el-option>
                                    <el-option label="高中" value="高中"></el-option>
                                    <el-option label="大专" value="大专"></el-option>
                                    <el-option label="本科" value="本科"></el-option>
                                    <el-option label="研究生" value="研究生"></el-option>
                                    <el-option label="硕士" value="硕士"></el-option>
                                    <el-option label="博士" value="博士"></el-option>
                                </el-select>
                            </el-form-item>
                        </el-col>
                    </el-row>
                    @*第八行*@
                    <el-row>
                        <el-col :span="6">
                            <el-form-item label="教育年限">
                                <el-select placeholder="请选择教育年限" v-model="human_educated_years" v-on:change="natchange">
                                    <el-option label="16年" value="16"></el-option>
                                    <el-option label="12年" value="12"></el-option>
                                    <el-option label="9年" value="9"></el-option>
                                    <el-option label="6年" value="6"></el-option>
                                    <el-option label="0年" value="0"></el-option>
                                </el-select>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="学历专业">
                                <el-select placeholder="请选择学历专业" v-model="human_educated_major" v-on:change="natchange">
                                    <el-option label="生物工程" value="生物工程"></el-option>
                                    <el-option label="计算机" value="计算机"></el-option>
                                    <el-option label="土木工程" value="土木工程"></el-option>
                                    <el-option label="临床医学" value="临床医学"></el-option>
                                    <el-option label="新闻传播" value="新闻传播"></el-option>
                                </el-select>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="薪酬要求">
                                <el-input v-model="demand_salary_standard" placeholder="请输入薪酬要求"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="注册时间">
                                <el-date-picker v-model="regist_time" type="datetime" :disabled="true"></el-date-picker>
                            </el-form-item>
                        </el-col>
                    </el-row>
                    @*第九行*@
                    <el-row>
                        <el-col :span="6">
                            <el-form-item label="特长">
                                <el-select placeholder="请选择特长" v-model="human_specility" v-on:change="natchange">
                                    <el-option label="Java语言" value="java"></el-option>
                                    <el-option label="数据库操作" value="数据库"></el-option>
                                    <el-option label="项目搭建" value="项目搭建"></el-option>
                                    <el-option label="C#语言" value="C#"></el-option>
                                    <el-option label="Python语言" value="Python"></el-option>
                                </el-select>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="兴趣爱好">
                                <el-select placeholder="请选择兴趣爱好" v-model="human_hobby" v-on:change="natchange">
                                    <el-option label="唱歌" value="唱歌"></el-option>
                                    <el-option label="舞蹈" value="舞蹈"></el-option>
                                    <el-option label="播音主持" value="播音主持"></el-option>
                                    <el-option label="篮球" value="篮球"></el-option>
                                    <el-option label="乒乓球" value="乒乓球"></el-option>
                                </el-select>
                            </el-form-item>
                        </el-col>
                    </el-row>
                    @*第十行*@
                    <el-row>
                        <el-col :span="18">
                            <el-form-item label="个人履历">
                                <el-input type="textarea"
                                          :autosize="{ minRows: 4, maxRows: 6}"
                                          placeholder="请输入个人履历"
                                          v-model="human_history_records">
                                </el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>
                    @*第十一行*@
                    <el-row>
                        <el-col :span="18">
                            <el-form-item label="备注">
                                <el-input type="textarea"
                                          :autosize="{ minRows: 4, maxRows: 6}"
                                          placeholder="请输入备注"
                                          v-model="remark">
                                </el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>
                    @*第十二行 这里需要再添加一个筛选推荐意见，并决定是否推荐面试*@
                    <el-row :gutter="20">
                        <el-col :span="12">
                            <el-form-item label="推荐意见">
                                <el-input type="textarea"
                                          :autosize="{ minRows: 4, maxRows: 6}"
                                          placeholder="请输入推荐意见"
                                          v-model="recomandation">
                                </el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="3">
                            是否推荐面试
                        </el-col>
                        <el-col :span="9">
                            @*<el-form-item label="是否推荐面试">*@
                            <el-switch v-model="nyrecommend"
                                       active-color="#13ce66"
                                       inactive-color="#ff4949" :disabled="flag">
                            </el-switch>
                            @*</el-form-item>*@
                        </el-col>
                    </el-row>
                </el-form>
                <span slot="footer" class="dialog-footer">
                    <el-button v-on:click="dialogVisibleUdp = false">取 消</el-button>
                    <el-button type="primary" v-on:click="updateER">确 定</el-button>
                </span>
            </el-dialog>
        </div>
    </transition>
</div>


<script type="text/javascript">
    var vue = new Vue({
        el: '#app',
        data: {
            //修改模态框
            dialogVisibleUdp: false,
            //表格显示标记
            show: false,
            //表格数据源集合
            tableData: [],
            formData: {},
            //关键字
            keyword: '',
            //登记时间
            regist_time: '',
            //职位类型联级选择器数据源
            cmks: [],
            //选中项绑定值
            cmkValue: [],
            //次级菜单的展开方式和数据源绑定
            optionProps: {
                expandTrigger: 'hover',
                value: 'id',
                label: 'name',
                children: 'children'
            },
            //修改模态框内数据源
            //职位类型联级选择器数据源
            cmks: [],
            //选中项绑定值
            cmkValue: [],
            //次级菜单的展开方式和数据源绑定
            optionProps: {
                expandTrigger: 'hover',
                value: 'id',
                label: 'name',
                children: 'children'
            },
            //招聘类型
            engage_type: '',
            //姓名
            human_name: '',
            //性别
            human_sex: '男',
            //Email邮箱
            human_email: '',
            //电话号码
            human_telephone: '',
            //家庭电话
            human_homephone: '',
            //手机号
            human_mobilephone: '',
            //住址
            human_address: '',
            //邮编
            human_postcode: '',
            //国籍
            human_nationality: '',
            //国籍数组数据源
            human_nationalityList: [{
                label: '热门国家',
                options: [{ value: 'China', label: '中国' },]
            }, {
                label: '所有国家',
                options: [
                    { value: 'Angola', label: '安哥拉' },
                    { value: 'Afghanistan', label: '阿富汗' },
                    { value: 'Albania', label: '阿尔巴尼亚' },
                    { value: 'Algeria', label: '阿尔及利亚' },
                    { value: 'Andorra', label: '安道尔共和国' },
                    { value: 'Anguilla', label: '安圭拉岛' },
                    { value: 'Antigua and Barbuda', label: '安提瓜和巴布达' },
                    { value: 'Argentina', label: '阿根廷' },
                    { value: 'Armenia', label: '亚美尼亚' },
                    { value: 'Ascension', label: '阿森松' },
                    { value: 'Australia', label: '澳大利亚' },
                    { value: 'Austria', label: '奥地利' },
                    { value: 'Azerbaijan', label: '阿塞拜疆' },
                    { value: 'Bahamas', label: '巴哈马' },
                    { value: 'Bahrain', label: '巴林' },
                    { value: 'Bangladesh', label: '孟加拉国' },
                    { value: 'Barbados', label: '巴巴多斯' },
                    { value: 'Belarus', label: '白俄罗斯' },
                    { value: 'Belgium', label: '比利时' },
                    { value: 'Belize', label: '伯利兹' },
                    { value: 'Benin', label: '贝宁' },
                    { value: 'Bermuda Is', label: '百慕大群岛' },
                    { value: 'Bolivia', label: '玻利维亚' },
                    { value: 'Botswana', label: '博茨瓦纳' },
                    { value: 'Brazil', label: '巴西' },
                    { value: 'Brunei', label: '文莱' },
                    { value: 'Bulgaria', label: '保加利亚' },
                    { value: 'Burkina Faso', label: '布基纳法索' },
                    { value: 'Burma', label: '缅甸' },
                    { value: 'Burundi', label: '布隆迪' },
                    { value: 'Cameroon', label: '喀麦隆' },
                    { value: 'Canada', label: '加拿大' },
                    { value: 'Cayman Is', label: '开曼群岛' },
                    { value: 'Central African Republic', label: '中非共和国' },
                    { value: 'Chad', label: '乍得' },
                    { value: 'Chile', label: '智利' },
                    { value: 'China', label: '中国' },
                    { value: 'Colombia', label: '哥伦比亚' },
                    { value: 'Congo', label: '刚果' },
                    { value: 'Cook Is', label: '库克群岛' },
                    { value: 'Costa Rica', label: '哥斯达黎加' },
                    { value: 'Cuba', label: '古巴' },
                    { value: 'Cyprus', label: '塞浦路斯' },
                    { value: 'Czech Republic', label: '捷克' },
                    { value: 'Denmark', label: '丹麦' },
                    { value: 'Djibouti', label: '吉布提' },
                    { value: 'Dominica Rep', label: '多米尼加共和国' },
                    { value: 'Ecuador', label: '厄瓜多尔' },
                    { value: 'Egypt', label: '埃及' },
                    { value: 'EI Salvador', label: '萨尔瓦多' },
                    { value: 'Estonia', label: '爱沙尼亚' },
                    { value: 'Ethiopia', label: '埃塞俄比亚' },
                    { value: 'Fiji', label: '斐济' },
                    { value: 'Finland', label: '芬兰' },
                    { value: 'France', label: '法国' },
                    { value: 'French Guiana', label: '法属圭亚那' },
                    { value: 'French Polynesia', label: '法属玻利尼西亚' },
                    { value: 'Gabon', label: '加蓬' },
                    { value: 'Gambia', label: '冈比亚' },
                    { value: 'Georgia', label: '格鲁吉亚' },
                    { value: 'Germany', label: '德国' },
                    { value: 'Ghana', label: '加纳' },
                    { value: 'Gibraltar', label: '直布罗陀' },
                    { value: 'Greece', label: '希腊' },
                    { value: 'Grenada', label: '格林纳达' },
                    { value: 'Guam', label: '关岛' },
                    { value: 'Guatemala', label: '危地马拉' },
                    { value: 'Guinea', label: '几内亚' },
                    { value: 'Guyana', label: '圭亚那' },
                    { value: 'Haiti', label: '海地' },
                    { value: 'Honduras', label: '洪都拉斯' },
                    { value: 'Hungary', label: '匈牙利' },
                    { value: 'Iceland', label: '冰岛' },
                    { value: 'India', label: '印度' },
                    { value: 'Indonesia', label: '印度尼西亚' },
                    { value: 'Iran', label: '伊朗' },
                    { value: 'Iraq', label: '伊拉克' },
                    { value: 'Ireland', label: '爱尔兰' },
                    { value: 'Israel', label: '以色列' },
                    { value: 'Italy', label: '意大利' },
                    { value: 'Ivory Coast', label: '科特迪瓦' },
                    { value: 'Jamaica', label: '牙买加' },
                    { value: 'Japan', label: '日本' },
                    { value: 'Jordan', label: '约旦' },
                    { value: 'Kampuchea (Cambodia )', label: '柬埔寨' },
                    { value: 'Kazakstan', label: '哈萨克斯坦' },
                    { value: 'Kenya', label: '肯尼亚' },
                    { value: 'Korea', label: '韩国' },
                    { value: 'Kuwait', label: '科威特' },
                    { value: 'Kyrgyzstan', label: '吉尔吉斯坦' },
                    { value: 'Laos', label: '老挝' },
                    { value: 'Latvia', label: '拉脱维亚' },
                    { value: 'Lebanon', label: '黎巴嫩' },
                    { value: 'Lesotho', label: '莱索托' },
                    { value: 'Liberia', label: '利比里亚' },
                    { value: 'Libya', label: '利比亚' },
                    { value: 'Liechtenstein', label: '列支敦士登' },
                    { value: 'Lithuania', label: '立陶宛' },
                    { value: 'Luxembourg', label: '卢森堡' },
                    { value: 'Madagascar', label: '马达加斯加' },
                    { value: 'Malawi', label: '马拉维' },
                    { value: 'Malaysia', label: '马来西亚' },
                    { value: 'Maldives', label: '马尔代夫' },
                    { value: 'Mali', label: '马里' },
                    { value: 'Malta', label: '马耳他' },
                    { value: 'Mariana Is', label: '马里亚那群岛' },
                    { value: 'Martinique', label: '马提尼克' },
                    { value: 'Mauritius', label: '毛里求斯' },
                    { value: 'Mexico', label: '墨西哥' },
                    { value: 'Moldova', label: '摩尔多瓦' },
                    { value: 'Monaco', label: '摩纳哥' },
                    { value: 'Mongolia', label: '蒙古' },
                    { value: 'Montserrat Is', label: '蒙特塞拉特岛' },
                    { value: 'Morocco', label: '摩洛哥' },
                    { value: 'Mozambique', label: '莫桑比克' },
                    { value: 'Namibia', label: '纳米比亚' },
                    { value: 'Nauru', label: '瑙鲁' },
                    { value: 'Nepal', label: '尼泊尔' },
                    { value: 'Netheriands Antilles', label: '荷属安的列斯' },
                    { value: 'Netherlands', label: '荷兰' },
                    { value: 'New Zealand', label: '新西兰' },
                    { value: 'Nicaragua', label: '尼加拉瓜' },
                    { value: 'Niger', label: '尼日尔' },
                    { value: 'Nigeria', label: '尼日利亚' },
                    { value: 'North Korea', label: '朝鲜' },
                    { value: 'Norway', label: '挪威' },
                    { value: 'Oman', label: '阿曼' },
                    { value: 'Pakistan', label: '巴基斯坦' },
                    { value: 'Panama', label: '巴拿马' },
                    { value: 'Papua New Cuinea', label: '巴布亚新几内亚' },
                    { value: 'Paraguay', label: '巴拉圭' },
                    { value: 'Peru', label: '秘鲁' },
                    { value: 'Philippines', label: '菲律宾' },
                    { value: 'Poland', label: '波兰' },
                    { value: 'Portugal', label: '葡萄牙' },
                    { value: 'Puerto Rico', label: '波多黎各' },
                    { value: 'Qatar', label: '卡塔尔' },
                    { value: 'Reunion', label: '留尼旺' },
                    { value: 'Romania', label: '罗马尼亚' },
                    { value: 'Russia', label: '俄罗斯' },
                    { value: 'Saint Lueia', label: '圣卢西亚' },
                    { value: 'Saint Vincent', label: '圣文森特岛' },
                    { value: 'Samoa Eastern', label: '东萨摩亚(美)' },
                    { value: 'Samoa Western', label: '西萨摩亚' },
                    { value: 'San Marino', label: '圣马力诺' },
                    { value: 'Sao Tome and Principe', label: '圣多美和普林西比' },
                    { value: 'Saudi Arabia', label: '沙特阿拉伯' },
                    { value: 'Senegal', label: '塞内加尔' },
                    { value: 'Seychelles', label: '塞舌尔' },
                    { value: 'Sierra Leone', label: '塞拉利昂' },
                    { value: 'Singapore', label: '新加坡' },
                    { value: 'Slovakia', label: '斯洛伐克' },
                    { value: 'Slovenia', label: '斯洛文尼亚' },
                    { value: 'Solomon Is', label: '所罗门群岛' },
                    { value: 'Somali', label: '索马里' },
                    { value: 'South Africa', label: '南非' },
                    { value: 'Spain', label: '西班牙' },
                    { value: 'SriLanka', label: '斯里兰卡' },
                    { value: 'St.Lucia', label: '圣卢西亚' },
                    { value: 'St.Vincent', label: '圣文森特' },
                    { value: 'Sudan', label: '苏丹' },
                    { value: 'Suriname', label: '苏里南' },
                    { value: 'Swaziland', label: '斯威士兰' },
                    { value: 'Sweden', label: '瑞典' },
                    { value: 'Switzerland', label: '瑞士' },
                    { value: 'Syria', label: '叙利亚' },
                    { value: 'Tajikstan', label: '塔吉克斯坦' },
                    { value: 'Tanzania', label: '坦桑尼亚' },
                    { value: 'Thailand', label: '泰国' },
                    { value: 'Togo', label: '多哥' },
                    { value: 'Tonga', label: '汤加' },
                    { value: 'Trinidad and Tobago', label: '特立尼达和多巴哥' },
                    { value: 'Tunisia', label: '突尼斯' },
                    { value: 'Turkey', label: '土耳其' },
                    { value: 'Turkmenistan', label: '土库曼斯坦' },
                    { value: 'Uganda', label: '乌干达' },
                    { value: 'Ukraine', label: '乌克兰' },
                    { value: 'United Arab Emirates', label: '阿拉伯联合酋长国' },
                    { value: 'United Kiongdom', label: '英国' },
                    { value: 'United States of America', label: '美国' },
                    { value: 'Uruguay', label: '乌拉圭' },
                    { value: 'Uzbekistan', label: '乌兹别克斯坦' },
                    { value: 'Venezuela', label: '委内瑞拉' },
                    { value: 'Vietnam', label: '越南' },
                    { value: 'Yemen', label: '也门' },
                    { value: 'Yugoslavia', label: '南斯拉夫' },
                    { value: 'Zimbabwe', label: '津巴布韦' },
                    { value: 'Zaire', label: '扎伊尔' },
                    { value: 'Zambia', label: '赞比亚' }
                ]
            }],
            //出生地
            human_birthplace: '',
            //生日
            human_birthday: '',
            //民族
            human_race: '',
            //民族数组数据源
            human_raceList: [
                {
                    id: 1,
                    info: "汉族",
                },
                {
                    id: 2,
                    info: "壮族",
                },
                {
                    id: 3,
                    info: "满族",
                },
                {
                    id: 4,
                    info: "回族",
                },
                {
                    id: 5,
                    info: "苗族",
                },
                {
                    id: 6,
                    info: "维吾尔族",
                },
                {
                    id: 7,
                    info: "土家族",
                },
                {
                    id: 8,
                    info: "彝族",
                },
                {
                    id: 9,
                    info: "蒙古族",
                },
                {
                    id: 10,
                    info: "藏族",
                },
                {
                    id: 11,
                    info: "布依族",
                },
                {
                    id: 12,
                    info: "侗族",
                },
                {
                    id: 13,
                    info: "瑶族",
                },
                {
                    id: 14,
                    info: "朝鲜族",
                },
                {
                    id: 15,
                    info: "白族",
                },
                {
                    id: 16,
                    info: "哈尼族",
                },
                {
                    id: 17,
                    info: "哈萨克族",
                },
                {
                    id: 18,
                    info: "黎族",
                },
                {
                    id: 19,
                    info: "傣族",
                },
                {
                    id: 20,
                    info: "畲族",
                },
                {
                    id: 21,
                    info: "傈僳族",
                },
                {
                    id: 22,
                    info: "仡佬族",
                },
                {
                    id: 23,
                    info: "东乡族",
                },
                {
                    id: 24,
                    info: "高山族",
                },
                {
                    id: 25,
                    info: "拉祜族",
                },
                {
                    id: 26,
                    info: "水族",
                },
                {
                    id: 27,
                    info: "佤族",
                },
                {
                    id: 28,
                    info: "纳西族",
                },
                {
                    id: 29,
                    info: "羌族",
                },
                {
                    id: 30,
                    info: "土族",
                },
                {
                    id: 31,
                    info: "仫佬族",
                },
                {
                    id: 32,
                    info: "锡伯族",
                },
                {
                    id: 33,
                    info: "柯尔克孜族",
                },
                {
                    id: 34,
                    info: "达斡尔族",
                },
                {
                    id: 35,
                    info: "景颇族",
                },
                {
                    id: 36,
                    info: "毛南族",
                },
                {
                    id: 37,
                    info: "撒拉族",
                },
                {
                    id: 38,
                    info: "布朗族",
                },
                {
                    id: 39,
                    info: "塔吉克族",
                },
                {
                    id: 40,
                    info: "阿昌族",
                },
                {
                    id: 41,
                    info: "普米族",
                },
                {
                    id: 42,
                    info: "鄂温克族",
                },
                {
                    id: 43,
                    info: "怒族",
                },
                {
                    id: 44,
                    info: "京族",
                },
                {
                    id: 45,
                    info: "基诺族",
                },
                {
                    id: 46,
                    info: "德昂族",
                },
                {
                    id: 47,
                    info: "保安族",
                },
                {
                    id: 48,
                    info: "俄罗斯族",
                },
                {
                    id: 49,
                    info: "裕固族",
                },
                {
                    id: 50,
                    info: "乌孜别克族",
                },
                {
                    id: 51,
                    info: "门巴族",
                },
                {
                    id: 52,
                    info: "鄂伦春族",
                },
                {
                    id: 53,
                    info: "独龙族",
                },
                {
                    id: 54,
                    info: "塔塔尔族",
                },
                {
                    id: 55,
                    info: "赫哲族",
                },
                {
                    id: 56,
                    info: "珞巴族",
                },
            ],
            //宗教信仰
            human_religion: '',
            //政治面膜
            human_party: '',
            //政治面貌数组数据源
            human_partyList: [
                {
                    id: 1,
                    value: '群众'
                },
                {
                    id: 2,
                    value: '无党派人士'
                },
                {
                    id: 3,
                    value: '共青团员'
                },
                {
                    id: 4,
                    value: '中共预备党员'
                },
                {
                    id: 5,
                    value: '中共预备党员'
                },
                {
                    id: 6,
                    value: '民革党员'
                },
                {
                    id: 7,
                    value: '民盟盟员'
                },
                {
                    id: 8,
                    value: '民建会员'
                },
                {
                    id: 9,
                    value: '民进会员'
                },
                {
                    id: 10,
                    value: '农工党党员'
                },
                {
                    id: 11,
                    value: '致公党党员'
                },
                {
                    id: 12,
                    value: '九三学社社员'
                },
                {
                    id: 13,
                    value: '台盟盟员'
                },
            ],
            //身份证号
            human_idcard: '',
            //年龄
            human_age: '',
            //毕业院校
            human_college: '',
            //教育程度-学历
            human_educated_degree: '',
            //教育年限
            human_educated_years: '',
            //学历专业
            human_educated_major: '',
            //薪酬要求
            demand_salary_standard: '',
            //注册时间
            regist_time: '',
            //特长
            human_specility: '',
            //兴趣爱好
            human_hobby: '',
            //个人履历
            human_history_records: '',
            //备注
            remark: '',
            //简历主键
            res_id: '',
            //推荐意见
            recomandation: '',
            //是否推荐面试的标记
            nyrecommend: true,
            //如果编辑的是了已经推荐面试了的则禁用开关
            flag: false,
        },
        methods: {
            //加载事件，刷新联级选择器
            cmksFill() {
                axios.get("/EngageResume/CMKCascader").then(res => {
                    this.cmks = res.data;
                });
            },
            //联级选择器值改变事件
            handleChange(val) {
                console.log(val, "联级选择器值改变事件", this.$refs['cmkk'].getCheckedNodes()[0].pathLabels);
            },
            //提交筛选
            onSubmit() {
                this.show = true;
                console.log(this.cmkValue, this.keyword, this.regist_time);
                axios.post('/EngageResume/ERFiltrate', {
                    major_kind_id: this.cmkValue[0].toString(),
                    major_id: this.cmkValue[1].toString(),
                    keyword: this.keyword,
                    opendate: this.regist_time[0],
                    closedate: this.regist_time[1],
                }).then(res => {
                    console.log("res.data:", res.data);
                    this.tableData = res.data;
                })
            },
            //编辑按钮操作
            handleEdit(row) {
                //先将开关进行置空
                this.flag = false;
                console.info("row:", row);
                //拿到主键，用于稍后根据主键修改信息
                this.res_id = row.res_id;
                //this.fillCombox();
                this.dialogVisibleUdp = true;
                //此处联级选择器是双向绑定的数据，可以不用回显
                this.engage_type = row.engage_type;
                this.human_name = row.human_name;
                this.human_sex = row.human_sex;
                this.human_email = row.human_email;
                this.human_telephone = row.human_telephone;
                this.human_homephone = row.human_homephone;
                this.human_mobilephone = row.human_mobilephone;
                this.human_address = row.human_address;
                this.human_postcode = row.human_postcode;
                this.human_nationality = row.human_nationality;
                this.human_birthplace = row.human_birthplace;
                this.human_birthday = row.human_birthday;
                this.human_race = row.human_race;
                this.human_religion = row.human_religion;
                this.human_party = row.human_party;
                this.human_idcard = row.human_idcard;
                this.human_age = row.human_age;
                this.human_college = row.human_college;
                this.human_educated_degree = row.human_educated_degree;
                this.human_educated_years = row.human_educated_years;
                this.human_educated_major = row.human_educated_major;
                this.demand_salary_standard = row.demand_salary_standard;
                this.regist_time = row.regist_time;
                this.human_specility = row.human_specility;
                this.human_hobby = row.human_hobby;
                this.human_history_records = row.human_history_records;
                this.remark = row.remark;
                this.recomandation = row.recomandation;
                if (this.recomandation != null) {
                    this.flag = true;
                }
            },
            //加载事件获取所有下拉列表框的源数组数据
            fillCombox() {
                axios.get("/EngageResume/CMKCascader").then(res => {
                    console.info("res.data:", res.data);
                    this.cmks = res.data;
                });
            },
            //确认修改的按钮操作
            updateER() {
                console.info("滑动框的值", this.nyrecommend);
                if (this.flag) {
                    const h = this.$createElement;
                    this.$notify({
                        title: '温馨提示！',
                        type: 'warning',
                        message: h('i', { style: 'color: teal' }, '该求职者已经推荐了面试，无法进行重复推荐！')
                    });
                } else {
                    if (this.nyrecommend) {
                        axios.post("/EngageResume/EngageResumeUdp", {
                            res_id: this.res_id,
                            human_major_kind_id: this.cmkValue[0].toString(),
                            human_major_kind_name: this.$refs['cmkk'].getCheckedNodes()[0].pathLabels[0],
                            human_major_id: this.cmkValue[1].toString(),
                            human_major_name: this.$refs['cmkk'].getCheckedNodes()[0].pathLabels[1],
                            engage_type: this.engage_type,
                            human_name: this.human_name,
                            human_sex: this.human_sex,
                            human_email: this.human_email,
                            human_telephone: this.human_telephone,
                            human_homephone: this.human_homephone,
                            human_mobilephone: this.human_mobilephone,
                            human_address: this.human_address,
                            human_postcode: this.human_postcode,
                            human_nationality: this.human_nationality,
                            human_birthplace: this.human_birthplace,
                            human_birthday: this.human_birthday,
                            human_race: this.human_race,
                            human_religion: this.human_religion,
                            human_party: this.human_party,
                            human_idcard: this.human_idcard,
                            human_age: parseInt(this.human_age),
                            human_college: this.human_college,
                            human_educated_degree: this.human_educated_degree,
                            human_educated_years: parseInt(this.human_educated_years),
                            human_educated_major: this.human_educated_major,
                            demand_salary_standard: parseInt(this.demand_salary_standard),
                            regist_time: this.regist_time,
                            human_specility: this.human_specility,
                            human_hobby: this.human_hobby,
                            human_history_records: this.human_history_records,
                            remark: this.remark,
                            recomandation: this.recomandation,
                        }).then(res => {
                            if (res.data > 0) {
                                this.opensuc('修改简历成功,已推荐面试');
                                this.dialogVisibleUdp = false;
                            }
                        })
                    } else {
                        this.$confirm('当前选择未推荐面试，继续操作将删除该条简历，是否要删除呢？').then(res => {
                            axios.delete('/EngageResume/EngageResumeDel?res_id=' + res_id).then((res) => {
                                if (res.data > 0) {
                                    this.opensuc('删除简历成功!');
                                }
                            })
                        }).catch(err => {
                            console.info("未推荐面试的异常：", err);
                        })
                    }
                }
            },
            //删除按钮操作
            handleDelete(res_id) {

            },
            //成功通知框
            opensuc(msg) {
                this.$message({
                    message: msg,
                    type: 'success'
                })
            },
        },
        mounted: function() {
            this.cmksFill();
        }

    })

</script>


